public class Qiushu {

	public static void main(String[] args) {
		for (int i = 1000; i < 10000; i++) {
			if (i % 4 != 0)
				continue;
			if (i % 7 != 0)
				continue;

			if (i % 11 != 0)
				continue;

			if (i / 100 % 10 != 3)
				continue;

			System.out.println(i + "满足条件！");
		}
	}

}
